package com.management.vo;

import java.sql.Timestamp;

/**
 * @author zwh
 * @date 2021/10/28
 */
public class UserAndCompanyVO {
    /**
     * 人员与公司编号
     */
    private int userAndCompanyId;

    /**
     * 人员编号
     */
    private int userId;
    /**
     * 公司编号
     */
    private int companyId;
    /**
     * 职员部门
     */
    private int deptId;
    /**
     * 职员科室
     */
    private int sectionId;
    /**
     * 职员职位
     */
    private int postId;
    /**
     * 入职时间
     */
    private Timestamp entryTime;
    /**
     * 合同到期时间
     */
    private Timestamp expirationDate;
    /**
     * 基本工资
     */
    private double salary;
    /**
     * 职工状态
     */
    private String empStateName;

    /**
     * 人员姓名
     */
    private String userName;

    /**
     * 公司名称
     */
    private String companyName;

    /**
     * 部门名称
     */
    private String deptName;

    /**
     * 科室名称
     */
    private String sectionName;

    /**
     * 职位名称
     */
    private String postName;

    @Override
    public String toString() {
        return "UserAndCompanyVO{" +
                "userAndCompanyId=" + userAndCompanyId +
                ", userId=" + userId +
                ", companyId=" + companyId +
                ", deptId=" + deptId +
                ", sectionId=" + sectionId +
                ", postId=" + postId +
                ", entryTime=" + entryTime +
                ", expirationDate=" + expirationDate +
                ", salary=" + salary +
                ", empStateName='" + empStateName + '\'' +
                ", userName='" + userName + '\'' +
                ", companyName='" + companyName + '\'' +
                ", deptName='" + deptName + '\'' +
                ", sectionName='" + sectionName + '\'' +
                ", postName='" + postName + '\'' +
                '}';
    }

    public UserAndCompanyVO() {
    }

    public UserAndCompanyVO(int userAndCompanyId, int userId, int companyId, int deptId, int sectionId, int postId, Timestamp entryTime, Timestamp expirationDate, double salary, String empStateName, String userName, String companyName, String deptName, String sectionName, String postName) {
        this.userAndCompanyId = userAndCompanyId;
        this.userId = userId;
        this.companyId = companyId;
        this.deptId = deptId;
        this.sectionId = sectionId;
        this.postId = postId;
        this.entryTime = entryTime;
        this.expirationDate = expirationDate;
        this.salary = salary;
        this.empStateName = empStateName;
        this.userName = userName;
        this.companyName = companyName;
        this.deptName = deptName;
        this.sectionName = sectionName;
        this.postName = postName;
    }

    public int getUserAndCompanyId() {
        return userAndCompanyId;
    }

    public void setUserAndCompanyId(int userAndCompanyId) {
        this.userAndCompanyId = userAndCompanyId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getCompanyId() {
        return companyId;
    }

    public void setCompanyId(int companyId) {
        this.companyId = companyId;
    }

    public int getDeptId() {
        return deptId;
    }

    public void setDeptId(int deptId) {
        this.deptId = deptId;
    }

    public int getSectionId() {
        return sectionId;
    }

    public void setSectionId(int sectionId) {
        this.sectionId = sectionId;
    }

    public int getPostId() {
        return postId;
    }

    public void setPostId(int postId) {
        this.postId = postId;
    }

    public Timestamp getEntryTime() {
        return entryTime;
    }

    public void setEntryTime(Timestamp entryTime) {
        this.entryTime = entryTime;
    }

    public Timestamp getExpirationDate() {
        return expirationDate;
    }

    public void setExpirationDate(Timestamp expirationDate) {
        this.expirationDate = expirationDate;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String getEmpStateName() {
        return empStateName;
    }

    public void setEmpStateName(String empStateName) {
        this.empStateName = empStateName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getSectionName() {
        return sectionName;
    }

    public void setSectionName(String sectionName) {
        this.sectionName = sectionName;
    }

    public String getPostName() {
        return postName;
    }

    public void setPostName(String postName) {
        this.postName = postName;
    }
}
